﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SF.Model
{
    /// <summary>
    /// 规则配置表
    /// </summary>
    [Serializable]
    public partial class bs_rule_config
    {
        public bs_rule_config()
        { }

        #region Model
        private long _id;
        private string _busnieseNum;
        private string _appNum;
        private int? _is_distribution = 1;  //开启分销
        private int? _recommendFollowExp = 2;  //推荐关注送积分
        private int? _followExp = 10;  //关注送积分
        private int? _is_follow_Buy = 1;  //关注是否可以购买
        private decimal? _twoPieceDiscount = (decimal)0.8;  //2件折扣
        private decimal? _upTwoPieceDiscount = (decimal)0.7;  //2件以上折扣
        private decimal? _freePostMoney = 98;  //满额包邮
        private decimal? _minWithdrawMoney = 100;  //最小提现金额
        private int? _autoConfirmDay = 10;  //多少天自动确认收货
        private decimal? _level0BuyExp = 0;
        private decimal? _level1BuyExp = 0;
        private decimal? _level2BuyExp = 0;
        private decimal? _level3BuyExp = 0;
        private decimal? _level0ReturnScale = 0;
        private decimal? _level1ReturnScale = (decimal)0.15;
        private decimal? _level2ReturnScale = (decimal)0.10;
        private decimal? _level3ReturnScale = (decimal)0.05;
        private decimal? _shoppingCurrency = (decimal)0.10;  //购物币比例（佣金+等级奖励后的比例）
        private decimal? _actionCurrency = (decimal)0.05;  //活动币（佣金+等级奖励后的比例）
        private decimal? _publicFund = 1;  //公益基金（每购买一个商品，提取的金额）

        /// <summary>
        /// 自增ID
        /// </summary>
        public long id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// 商户号编码
        /// </summary>
        public string busnieseNum
        {
            get { return _busnieseNum; }
            set { _busnieseNum = value; }
        }

        /// <summary>
        /// 公众号编码
        /// </summary>
        public string appNum
        {
            get { return _appNum; }
            set { _appNum = value; }
        }

        /// <summary>
        /// 是否开启分销
        /// </summary>
        public int? is_distribution
        {
            get { return _is_distribution; }
            set { _is_distribution = value; }
        }

        /// <summary>
        /// 推荐关注积分
        /// </summary>
        public int? recommendFollowExp
        {
            get { return _recommendFollowExp; }
            set { _recommendFollowExp = value; }
        }

        /// <summary>
        /// 关注积分
        /// </summary>
        public int? followExp
        {
            get { return _followExp; }
            set { _followExp = value; }
        }

        /// <summary>
        /// 是否关注后可购买
        /// </summary>
        public int? is_follow_Buy
        {
            get { return _is_follow_Buy; }
            set { _is_follow_Buy = value; }
        }

        /// <summary>
        /// 两件折扣
        /// </summary>
        public decimal? twoPieceDiscount
        {
            get { return _twoPieceDiscount; }
            set { _twoPieceDiscount = value; }
        }

        /// <summary>
        /// 两件以上折扣
        /// </summary>
        public decimal? upTwoPieceDiscount
        {
            get { return _upTwoPieceDiscount; }
            set { _upTwoPieceDiscount = value; }
        }

        /// <summary>
        /// 满XX包邮
        /// </summary>
        public decimal? freePostMoney
        {
            get { return _freePostMoney; }
            set { _freePostMoney = value; }
        }

        /// <summary>
        /// 最小提现金额
        /// </summary>
        public decimal? minWithdrawMoney
        {
            get { return _minWithdrawMoney; }
            set { _minWithdrawMoney = value; }
        }

        /// <summary>
        /// 自动确认天数
        /// </summary>
        public int? autoConfirmDay
        {
            get { return _autoConfirmDay; }
            set { _autoConfirmDay = value; }
        }

        /// <summary>
        /// 零级分销消费积分（购买者）
        /// </summary>
        public decimal? level0BuyExp
        {
            get { return _level0BuyExp; }
            set { _level0BuyExp = value; }
        }

        /// <summary>
        /// 一级分销消费积分
        /// </summary>
        public decimal? level1BuyExp
        {
            get { return _level1BuyExp; }
            set { _level1BuyExp = value; }
        }

        /// <summary>
        /// 二级分销消费积分
        /// </summary>
        public decimal? level2BuyExp
        {
            get { return _level2BuyExp; }
            set { _level2BuyExp = value; }
        }

        /// <summary>
        /// 三级分销消费积分
        /// </summary>
        public decimal? level3BuyExp
        {
            get { return _level3BuyExp; }
            set { _level3BuyExp = value; }
        }

        /// <summary>
        /// 零级分销返佣比例（购买者）
        /// </summary>
        public decimal? level0ReturnScale
        {
            get { return _level0ReturnScale; }
            set { _level0ReturnScale = value; }
        }

        /// <summary>
        /// 一级分销返佣比例
        /// </summary>
        public decimal? level1ReturnScale
        {
            get { return _level1ReturnScale; }
            set { _level1ReturnScale = value; }
        }

        /// <summary>
        /// 二级分销返佣比例
        /// </summary>
        public decimal? level2ReturnScale
        {
            get { return _level2ReturnScale; }
            set { _level2ReturnScale = value; }
        }

        /// <summary>
        /// 三级分销返佣比例
        /// </summary>
        public decimal? level3ReturnScale
        {
            get { return _level3ReturnScale; }
            set { _level3ReturnScale = value; }
        }

        /// <summary>
        /// 购物币比例（佣金+等级奖励后的比例）
        /// </summary>
        public decimal? shoppingCurrency
        {
            get { return _shoppingCurrency; }
            set { _shoppingCurrency = value; }
        }

        /// <summary>
        /// 活动币比例（佣金+等级奖励后的比例）
        /// </summary>
        public decimal? actionCurrency
        {
            get { return _actionCurrency; }
            set { _actionCurrency = value; }
        }

        /// <summary>
        /// 公益基金（每购买一个商品，提取的金额）
        /// </summary>
        public decimal? publicFund
        {
            get { return _publicFund; }
            set { _publicFund = value; }
        }
        #endregion
    }
}
